﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Prsrp
{

    public class BaseProjectile : BaseAsset
    {
        // The damage the bullet inflict.
        public int miDamage = 1;

        /// <summary>
        /// Base Update override who should be sufficient for a lot of Projectiles.
        /// Dispose the object if it's offscreen. (can cause bugs?)
        /// </summary>
        public override void Update()
        {
            if (IsOutOfScreen())
            {
                Dispose();
            }
            else
            {
                mvPos += mvSpeed;
            }
        }
    }
}
